import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import router from './router/index'
import {RouterProvider}  from 'react-router-dom'
const root = ReactDOM.createRoot(document.getElementById('root'));
import store from './store/index';
import {Provider} from 'react-redux';
import { ConfigProvider } from 'antd';


root.render(
  <React.StrictMode>
    {/* store 状态*/}
    <Provider store={store}>
      {/* router 路由 */}
      <RouterProvider router={router}>
        {/* antd */}
        <ConfigProvider>
           <App />
        </ConfigProvider>
      </RouterProvider>
    </Provider>
</React.StrictMode>
);
